/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.uca.sisbec.decorators;

import org.displaytag.decorator.ColumnDecorator;

/**
 *
 * @author Susy
 */
public class EliminarBecDecorator implements ColumnDecorator{
    public String decorate(Object o) {
        StringBuffer buffer = new StringBuffer(1000);
        return decorateColumn(buffer,(String)o);
    }

    private String decorateColumn(StringBuffer buffer, String obj) {
        String link = "<a href=\"#\" onclick=\"findItem('" + obj + "')\"";
        link += "><img src=\"./images/error.png\" /></a>";
        buffer.append(link);
        return buffer.toString();
    }
}
